<?php
/* @var $this MovieController */
/* @var $model Movie */

$this->breadcrumbs = array(
    Yii::t('default', 'Administration') => array('/'),
    Yii::t('default', 'Movies') => array('index'),
    $model->title,
);

$this->menu = array(
    array('label' => Yii::t('default', 'List Movie'), 'url' => array('index')),
    array('label' => Yii::t('default', 'Create Movie'), 'url' => array('create')),
    array('label' => Yii::t('default', 'Update Movie'), 'url' => array('update', 'id' => $model->id)),
    array('label' => Yii::t('default', 'Delete Movie'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('default', 'Are you sure you want to delete this item?'))),
    array('label' => Yii::t('default', 'Manage Movie'), 'url' => array('admin')),
);
?>

<h1><?php echo Yii::t('default', 'View Movie'); ?> #<?php echo $model->id; ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        'title',
        'subject',
        'source_image',
        array(
            'name' => 'free_image',
            'value' => $model->free_image ? Yii::t('default', 'Yes') : Yii::t('default', 'No'),
        ),
        array(
            'name' => 'image',
            'value' => Yii::app()->getBaseUrl(true) . '/image/' . $model->image,
        ),
        array(
            'name' => 'small_image',
            'value' => Yii::app()->getBaseUrl(true) . '/image/' . $model->small_image,
        ),
        'year',
        'duration',
        array(
            'name' => 'hidden',
            'value' => $model->hidden ? Yii::t('default', 'Yes') : Yii::t('default', 'No'),
        ),
        'wikipedia_url',
        'youtube_id',
        'kp_id',
        'kp_rating',
        'imdb_rating',
        array(
            'name' => 'language_id',
            'value' => $model->language->name,
        ),
        array(
            'name' => Yii::t('default', 'Genres'),
            'value' => $genres,
        ),
        array(
            'name' => Yii::t('default', 'Producers'),
            'value' => $producers,
        ),
        array(
            'name' => Yii::t('default', 'Directors'),
            'value' => $directors,
        ),
        array(
            'name' => Yii::t('default', 'Screenwriters'),
            'value' => $screenwriters,
        ),
        array(
            'name' => Yii::t('default', 'Actors'),
            'value' => $actors,
        ),
        array(
            'name' => Yii::t('default', 'Companies'),
            'value' => $companies,
        ),
        array(
            'name' => Yii::t('default', 'Countries'),
            'value' => $countries,
        ),
    ),
));
?>
